﻿using System;

namespace YArchitech.LIB
{
	public class ListItemWaterTankPara
	{
		public ListItemWaterTankPara()
		{
		}

		public ListItemWaterTankPara(string id, string specname, string volume, string height, string width, string length, string pipein, string pipeout, string pipeoverflow, string pipeblowoff, string weight)
		{
			this.id = id;
			this.specname = specname;
			this.volume = volume;
			this.length = length;
			this.height = height;
			this.width = width;
			this.pipein = pipein;
			this.pipeout = pipeout;
			this.pipeoverflow = pipeoverflow;
			this.pipeblowoff = pipeblowoff;
			this.weight = weight;
		}

		public ListItemWaterTankPara(string id, string specname, string volume, string height, string width, string length, string pipein, string pipeout, string pipeoverflow, string pipeblowoff, string weight, string externalLen, string externalWid, string externalHeig)
		{
			this.id = id;
			this.specname = specname;
			this.volume = volume;
			this.length = length;
			this.height = height;
			this.width = width;
			this.pipein = pipein;
			this.pipeout = pipeout;
			this.pipeoverflow = pipeoverflow;
			this.pipeblowoff = pipeblowoff;
			this.weight = weight;
			this.externalLength = externalLen;
			this.externalWidth = externalWid;
			this.externalHeight = externalHeig;
		}

		public ListItemWaterTankPara(string id, string height, string width, string length)
		{
			this.id = id;
			double value = double.Parse(length) / 1000.0 * double.Parse(height) / 1000.0 * double.Parse(width) / 1000.0;
			this.volume = Math.Round(value, 2).ToString();
			this.length = length;
			this.height = height;
			this.width = width;
		}

		public string id;

		public string specname;

		public string volume;

		public string height;

		public string width;

		public string length;

		public string pipein;

		public string pipeout;

		public string pipeoverflow;

		public string pipeblowoff;

		public string level;

		public string weight;

		public string externalLength;

		public string externalWidth;

		public string externalHeight;

		public double offSet;
	}
}
